#!/bin/sh

fileName="$1"

p0="$2"
if [ "$p0" == "-d" ]; then
	sed -i 's/\r$//g' $fileName
else
	sed -i 's/$/\r/g' $fileName
fi